<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>首页</title>
    </head>
    <body>
        <a href="javascript:void(0);">查询所有</a>

        <script>
            document.querySelectorAll("a")[0].onclick = function () {
                location.href="/day28_brand/BrandServlet?action=findAll";
            }
        </script>
    </body>
</html>